package com.dnjn.happiness.survey.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.annotation.Excel;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 题库类型对象 svy_tiku_tags
 *
 * @author happiness
 * @date 2023-10-31
 */
@Schema(name = "SvyTikuTags", description = "题库类型")
@Accessors(chain = true)
@Getter
@Setter
@TableName("svy_tiku_tags")
public class TikuTags extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * PK
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "tiku_tags_id", type = IdType.ASSIGN_ID)
    private Long tikuTagsId;


    


    /**
     * 题库名称
     */
    @Schema(description = "题库名称")
    @Excel(name = "题库名称")
    private String label;

    /**
     * 题库描述
     */
    @Schema(description = "题库描述")
    @Excel(name = "题库描述")
    private String tikuDescription;

    /**
     * 是否删除|0-否 1-是|valid
     */
    private String deleted;

    @Schema(description = "考核-check 问卷-survey")
    private String tikuType;

    @Schema(description = "题库分类：staff : manager")
    private String tikuCategory;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("tikuTagsId", getTikuTagsId())
                .append("label", getLabel())
                .append("tikuDescription", getTikuDescription())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("deleted", getDeleted())
                .append("version", getVersion())
                .toString();
    }
}
